package com.whxy02.tolearn.app.resultObject;


import com.whxy02.tolearn.app.beans.Question;
import lombok.*;

import java.util.ArrayList;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class QuestionResultType{
    /**
     * 题型列表
     * 标题
     * 所有题目数据
     */
    private List<ExamInfo> examInfos=new ArrayList<>();
    private String title="模拟试卷";
    private List<Question> questions;


    /**
     * 设置题型和对应的题目数量
     */
    public void addQuestionInfos(String questionTypeName,Integer questionCount ) {
        this.examInfos.add(new ExamInfo(questionCount,questionTypeName)) ;
    }
}


/**
 * 试卷信息类
 */

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@ToString
class ExamInfo{
    Integer questionCount;
    String questionTypeName;


}
